package net.borlis.errors.providers.common;

import net.borlis.errors.exceptions.ServerException;
import net.borlis.errors.exceptions.TranslatedException;

import java.util.Set;

/**
 * @author alex@borlis.net
 */
public interface ITranslatedExceptionProcessor {

    TranslatedException newTranslatedException(String locale, ServerException se);

    TranslatedException newTranslatedException(String locale, String code);

    TranslatedException newTranslatedException(String locale, String code, Throwable cause);

    Set<String> getSupportedLocales();

}
